package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.DestinationQueryObject;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDestinationService {
    void deleteByPrimaryKey(Long id);

    void insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    PageInfo<Destination> queryForList(DestinationQueryObject qo);

    void updateByPrimaryKey(Destination record);

    void changeHot(Long id, Integer hot);
        //面包屑导航
    List<Destination>listToasts(Long id);

    List<Destination> listDestByRegionId(Long rid);

    List<Destination> selectAll();

    List<Destination> listHotDestByRegionId(Long regionId);

    /**
     * 根据目的地的id查询国家
     * @param destId
     * @return
     */
    Destination getCountry(Long destId);

    /**根据目的地的id查询省份
     * @param destId
     * @return
     */
    Destination getProvince(Long destId);
}
